<?

	session_start( );

	if( isset($_SESSION[ "JO_account_debug" ] )) $JO_time = time( );

	//include_once( "JO_01_configuration.php"	);

	//include_once( "JO_02_function.php"		);
    //include_once( "DataProvider/DataProvider.php"		);

    $path="C:/xampp/htdocs/00_JO/JOi/";
    require($path.'JO_02_function.php');
    require ($path.'DataProvider/DataProvider.php');
    if (isset($_REQUEST["lang"])){
        $_lang=strtoupper($_REQUEST["lang"]);
        $_SESSION["lang"]=(($_lang=="VI" || $_lang=="EN" || $_lang=="KR")?$_lang:"VI");
    }
?>



<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

    <head>

        <title>JukeOn Việt Nam</title>
        
        <meta http-equiv="content-type" content="text/HTML; charset=UTF-8" />
        <link rel="stylesheet"		type="text/css"		href="JO_04II_CSS.css"/>
<!--        <link rel="stylesheet"		type="text/css"		href="JO_04_2_CSS.CSS"/>-->
        <link rel="stylesheet"		type="text/css"		href="menu.css"/>
         <!--[if IE 8]><link rel="stylesheet" href="JO_04_ie8.css" type="text/css" media="screen" /><![endif]-->
        <script type="text/javascript" src="./JO_JS/jquery.min.js"></script>
        <script type="text/javascript" src="./JO_JS/jquery.cycle.all.js"></script>
<!--        <script type="text/javascript" src="jquery.js"></script>
        --><script type="text/javascript" src="menu.js"></script>
        <script type="text/javascript" src="./JO_JS/autoresize.jquery.min.js"></script>
        <link rel="shortcut icon" type="image/x-icon" href="JO_ICON/JO_01_favicon.ico">
        <script type="text/javascript">
	        $(document).ready(function() {
	
	            $('.JO_top_slideshow')
	            .before('<div id="nav">')
	            .cycle({
	                fx:    'scrollUp', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
	                pause:  3,
	                speed: 2000
	
	
	
	            });
	
	        });
        </script>
        
        <script type="text/javascript">
	
			var _gaq = _gaq || [];
			_gaq.push( [ '_setAccount', 'UA-6524228-6' ] );
			_gaq.push( [ '_trackPageview' ] );
		
			( function( ) {
		
				var ga = document.createElement( 'script' ); ga.type = 'text/javascript'; ga.async = true;
				ga.src = ( 'https:' == document.location.protocol ? 'https://ssl' : 'http://www' ) + '.google-analytics.com/ga.js';
				var s = document.getElementsByTagName( 'script' )[ 0 ]; s.parentNode.insertBefore( ga, s );
		
			} )( );
	
	</script>
        
    </head>
    <body class="yui-skin-sam">
        <?php
        //$JO_MySQL = new mysqli( $JO_DB_host, $JO_DB_user, $JO_DB_password, $JO_DB_database );
	//$JO_MySQL -> query( "SET NAMES 'UTF8'" );
        ?>
        <!--
        /////
        ////----begin Script====================================================
        ///
        -->
        <script type="text/javascript">
        function JO_display(o,v){

            //if(document.getElementById(o).style.visibility=='hidden'){
            //        document.getElementById(o).style.visibility='visible';
                    //document.getElementById(o).style.display='block';
            //}else{
            //        document.getElementById(o).style.visibility='hidden';
                    document.getElementById(o).style.display=v;
            //}
        }
        function JO_display2(o){

            if(document.getElementById(o).style.display=='block'){
            //        document.getElementById(o).style.visibility='visible';
                    document.getElementById(o).style.display='none';
            }else{
            //        document.getElementById(o).style.visibility='hidden';
                    document.getElementById(o).style.display='block';
            }
        }
        function JO_JQdisplay(o,v){
            if(v=='block'){
                $(o).show(500);
            }else{
                $(o).hide(500);
            }
        }
        function JO_JQdisplay2(o){
            if($(o).is(":hidden")){
                $(o).show(500);
            }else{
                $(o).hide(500);
            }
        }
        function showobj(url,obj) {
            //document.getElementById(obj).innerHTML="<div style=\"height: 45px;text-align: center;background: url(images2/loading4.gif) center no-repeat\"><br/>Loadding...</div>";
            if (window.XMLHttpRequest) {
            xmlhttp=new XMLHttpRequest(); }
            else {
                xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); }
                xmlhttp.onreadystatechange=function() {
                        if (xmlhttp.readyState==4 && xmlhttp.status==200) {
                            document.getElementById(obj).innerHTML=xmlhttp.responseText;
                            
                        }
                    }

            xmlhttp.open("GET",(url),true);
            xmlhttp.send();
            //loadh();
        }
        function showobj_Statechange_function(url,fun) {
            //document.getElementById(obj).innerHTML="<div style=\"height: 45px;text-align: center;background: url(images2/loading4.gif) center no-repeat\"><br/>Loadding...</div>";
            //var xmlhttp;
//            var browser = navigator.appName;
//            if(browser == "Microsoft Internet Explorer"){
//            xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
//            }else{
//            xmlhttp = new XMLHttpRequest();
//            }
            if (window.XMLHttpRequest) {
                xmlhttp=new XMLHttpRequest();
            }else {
                xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
            }

            xmlhttp.onreadystatechange=fun;
            xmlhttp.open("GET",(url),true);
            xmlhttp.send();
            //loadh();
        }
        </script>
        <!--
        /////
        ////----End Script------------------------------------------------------
        ///
        -->


        <!--
        /////
        ////----Begin Styles====================================================
        ///
        -->


        <!--
        /////
        ////----End Sstyles-----------------------------------------------------
        ///
        -->




        <a style="" href="http://apycom.com/"></a>
        
        <div class="JO_mainpagei">
            <div class="JO_pagei">
                <?php
                include 'JO_000_head.php';
                if(!isset($_SESSION["JO_show_notice"]))
                    include 'JO_000_notice.php';
                ?>
                <!--
                /////
                ////----Begin Main==============================================
                ///
                -->
                <?php
                if(isset ($_REQUEST["JO_unit"])){
                    if(!file_exists("JO_" . $_REQUEST[ "JO_unit" ] . ".php")){
                        if(!isset($_SESSION["JO_err"])){
                            //session_register("JO_err");
                        }
                        $_SESSION["JO_error"]="404";//404 error
                        include ('JO_999_error.php');
                    }else{
                        include ('JO_'.$_REQUEST[ "JO_unit" ].'.php');
                    }
                }elseif (isset ($_REQUEST["SO_unit"])){
                    if(!file_exists("JO_20_SO/SO_00_integration.php")){
                        if(!isset($_SESSION["JO_err"])){
                            //session_register("JO_err");
                        }
                        $_SESSION["JO_error"]="404";//404 error
                        include ('JO_999_error.php');
                    }else{
                        include ('JO_20_SO/SO_00_integration.php');
                    }
                }
                else{

                	include ("JO_008_KPopNews.php");
                }
                ?>
                <!--
                /////
                ////----End Main------------------------------------------------
                ///
                -->
                <?php
                
                include 'JO_000_foot.php';
                ?>
            </div>
        </div>
        <iframe
                id		= 'JO_integration_asynchronous'
                name	= 'JO_integration_asynchronous'
                style	= "
                        width: 0px;height: 0px;
                        border: 0px;
                        width:	<?= (isset($_SESSION[ "JO_account_debug" ]) && $_SESSION[ "JO_account_debug" ]) ? "100%"	: "0px" ?>;
                        height:	<?= (isset($_SESSION[ "JO_account_debug" ]) && $_SESSION[ "JO_account_debug" ]) ? "10%"		: "0px" ?>;
                "
        ></iframe>
<!-- Debug -->
        <? if( isset($_SESSION[ "JO_account_debug" ])&& $_SESSION[ "JO_account_debug" ] ) { ?>

                Process Time = <?= time( ) - $JO_time ?> sec.<br />

                <pre><? print_r( $GLOBALS ); ?></pre>

        <? } ?>
    </body>
</html>

<?

	////
	///
	//	Log

		// Use the basic log function of PHP, first.

?>
